// 用于运行设置回显
const data = [
  {
    key: 'RuntimeConfig',
    code: 'runtime-config',
    text: '运行设置',
    pKey: '',
    items: [
      { code: 'JE_CORE_WEBSOCKETURL', value: '', label: ['通讯链接服务地址（PC）'] },
      { code: 'JE_CORE_WEBSOCKETURL4APP', value: '', label: ['通讯链接服务地址（Mobile）'] },
      { code: 'JE_SYS_LOGINFO', value: '', label: ['日志开关'] },
      { code: 'JE_SYS_INTERNET', value: '', label: ['允许连接公网'] },
      { code: 'JE_CORE_AJAXTIMEOUT', value: '', label: ['Ajax全局请求时长'] },
      { code: 'JE_SYS_UPLOADFILESIZE', value: '', label: ['允许上传附件全局大小'] },
      { code: 'JE_DOCUMENT_FILE_SUFFIX', value: '', label: ['允许上传附件全局格式'] },
    ],
  },
  {
    key: 'SecurityConfig',
    code: 'security-config',
    text: '安全设置',
    pKey: '',
    items: [
      { code: 'JE_SYS_ENCRYPT', value: '', label: ['浏览器数据传输加密'] },
      { code: 'JE_SYS_ENCRYPT_FIELD', value: '', label: ['传输时加密参数'] },
      { code: 'JE_SYS_ENCRYPT_KEY1', value: '', label: ['密钥'] },
      // { code: 'JE_SYS_ENCRYPT_KEY2', value: '', label: ['密钥2'] },
      // { code: 'JE_SYS_ENCRYPT_KEY3', value: '', label: ['密钥3'] },
      { code: 'JE_SMS_TIMEOUT', value: '', label: ['短信验证码时效'] },
      { code: 'JE_SYS_NOTE_COUNT', value: '', label: ['每日短信验证码生成次数'] },
      { code: 'JE_SYS_STAYTIME', value: '', label: ['离开后保留登录状态时间'] },
      { code: 'OPEN_ANTI_SQL_INJECTION', value: '', label: ['开启防SQL注入'] },
      { code: 'OPEN_ANTI_XSS_ATTACK', value: '', label: ['开启防XSS攻击'] },
    ],
  },
  {
    key: 'MessageService',
    code: 'message-service',
    text: '消息服务',
    pKey: '',
    items: [
      {
        code: 'JE_PUSH_PLATFORM',
        value: '',
        label: [
          'web页面消息推送',
          '邮件消息推送',
          '短信消息推送',
          'APP消息推送',
          '企业微信消息推送',
          '飞书消息推送',
          '钉钉消息推送',
          '华为WeLink消息推送',
        ],
      },
    ],
  },
  {
    key: 'LoginConfig',
    code: 'login-config',
    text: '登录设置',
    pKey: '',
    items: [
      { code: 'JE_CORE_VERIFY', value: '', label: ['登录方式'] },
      { code: 'JE_CORE_PHONELOGIN', value: '', label: ['允许使用手机验证码登录'] },
      { code: 'JE_CORE_PHONEREPASSWORD', value: '', label: ['允许使用手机找回密码'] },
      { code: 'JE_SYS_FASTLOGIN', value: '', label: ['快捷登录'] },
      {
        code: 'JE_SYS_FASTLOGINSELF',
        value: '',
        label: ['微信登录', '钉钉登录', '飞书登录', ' QQ登录', 'WeLink登录'],
      },
    ],
  },
  {
    code: 'team-config',
    items: [
      { code: 'JE_SYS_DEVMANAGER_NAME', value: '', type: '' },
      { code: 'JE_SYS_DEVMANAGER', value: '', type: '' },
      { code: 'JE_SYS_ADMIN', value: '', type: '' },
      { code: 'JE_SYS_ADMIN_NAME', value: '', type: '' },
    ],
  },
  {
    key: 'DevelopOnline',
    code: 'develop-online',
    text: '开发过程默认',
    pKey: '',
    items: [
      { code: 'FUNCINFO_FORMLABELWIDTH', label: ['【表单】字段标题宽'], value: '' },
      { code: 'FUNCINFO_FORMFIELD_SPACING', label: ['【表单】表单字段间距'], value: '' },
      { code: 'FUNCINFO_TABLESTYLE', label: ['【表单】启用科技灰皮肤'], value: '' },
      { code: 'FUNCINFO_CHILDSHOWTYPE', label: ['【功能】子功能展示方式'], value: '' },
      { code: 'RESOURCEFIELD_BORDER_COLOR', label: ['【表单】分组框边框颜色'], value: '' },
      {
        code: 'FUNCINFO_DISABLEQUERYSQL',
        label: ['【列表】禁用查询元素'],
        value: '',
      },
      { code: 'RESOURCEFIELD_TITLEB_COLOR', label: ['【表单】分组框标题颜色'], value: '' },
      { code: 'FUNCINFO_FIELD_SPACING', label: ['【表单】弹出时字段间距'], value: '' },
      { code: 'FUNCINFO_FORM_POSITION', label: ['【表单】弹出时表单位置'], value: '' },
      { code: 'FUNCINFO_GRIDHIDELINES', label: ['【列表】隐藏表格线'], value: '' },
      { code: 'RESOURCEFIELD_BGCOLOR', label: ['【表单】分组框内背景颜色'], value: '' },
      { code: 'RESOURCEFIELD_TITLEB_BGCOLOR', label: ['【表单】分组框标题背景颜色'], value: '' },
      { code: 'FUNCINFO_SIMPLEBAR', label: ['【列表】启动简洁按钮条'], value: '' },
      { code: 'FUNCINFO_FORMMINWIDTH', label: ['【表单】表单最小宽度'], value: '' },
      { code: 'FUNCINFO_FORMWIDTH', label: ['【表单】表单宽度'], value: '' },
      { code: 'FUNCINFO_PAGEINFOALIGN', label: ['【列表】分页条展示位置'], value: '' },
      { code: 'FUNCINFO_FORMCOLS', label: ['【表单】表单列数'], value: '' },
      { code: 'FUNCINFO_COLUMN_WIDTH', label: ['【列表】表格默认行高'], value: '' },
      { code: 'FUNCINFO_PAGESIZE', label: ['【列表】表格每页展示条数'], value: '' },
    ],
  },
  {
    key: 'DocumentOnline',
    code: 'document-online',
    text: '在线文档服务',
    pKey: '',
    items: [{ code: 'JE_SYS_DOCUMENT', value: '', label: ['onlyoffice', 'WPS', '不启用'] }],
  },
  {
    key: 'FileManage',
    code: 'file-manage',
    text: '在线文档服务',
    pKey: '',
    items: [
      {
        code: 'JE_FILE_STORAGE_TYPE',
        value: '',
        label: ['阿里云（OSS）', '腾讯云（OSS）', '华为云（OSS）', '普通硬盘存储', 'MinIO对象存储'],
      },
    ],
  },
  {
    key: 'NoteMessage',
    code: 'message-push',
    text: '消息服务',
    pKey: 'MessageService',
    items: [
      { code: 'NOTE_SYS_SIGNNAME', label: ['signName'], value: '', type: 'SYS' },
      { code: 'NOTE_253_REPORT', label: ['Report'], value: '', type: '253' },
      { code: 'NOTE_SYS_UID', label: ['Uid'], value: '', type: 'SYS' },
      { code: 'NOTE_253_USERNAME', label: ['Account'], value: '', type: '253' },
      { code: 'NOTE_253_SIGNNAME', label: ['SignName'], value: '1', type: '253' },
      { code: 'JE_SYS_NOTEDIY', label: ['短信服务商'], value: '253', type: '' },
      { code: 'NOTE_253_PASSWORD', label: ['Password'], value: '', type: '253' },
      { code: 'NOTE_SYS_URL', label: ['接入网址'], value: '', type: 'SYS' },
      { code: 'NOTE_ALIYUN_URL', label: ['接入网址'], value: '', type: 'ALIYUN' },
      { code: 'NOTE_ALIYUN_TEMPLATE', label: ['TemplateCode'], value: '', type: 'ALIYUN' },
      { code: 'NOTE_DIY_CLASS', label: ['执行类及执行方法'], value: '', type: 'DIY' },
      { code: 'NOTE_DIY_URL', label: ['接入网址'], value: '', type: 'DIY' },
      { code: 'NOTE_SYS_KEY', label: ['Key'], value: '', type: 'SYS' },
      { code: 'NOTE_253_SENDURL', label: ['接入网址'], value: '', type: '253' },
      { code: 'NOTE_ALIYUN_SECRET', label: ['AccessKey Secret'], value: '', type: 'ALIYUN' },
      { code: 'NOTE_253_TEMPLATE', label: ['Template'], value: '', type: '253' },
      { code: 'NOTE_SYS_MD5', label: ['KeyMD5'], value: '', type: 'SYS' },
      { code: 'NOTE_ALIYUN_ACCESSKEY', label: ['Accesskey ID'], value: '', type: 'ALIYUN' },
      { code: 'NOTE_ALIYUN_SIGNNAME', label: ['SignName'], value: '', type: 'ALIYUN' },
    ],
  },
  {
    key: 'JE_SYS_WLQUICKLOGIN',
    code: 'login-welink',
    text: '登录设置',
    pKey: 'LoginConfig',
    items: [
      { code: 'WL_LOGIN_CLIENTSECRET', label: ['ClientSecret'], value: '' },
      { code: 'WL_LOGIN_REDIRECTURL', label: ['Redirecturi'], value: '' },
      { code: 'WL_LOGIN_CLIENTID', label: ['ClientID'], value: '' },
    ],
  },
  {
    key: 'JE_SYS_FSQUICKLOGIN',
    code: 'login-feishu',
    text: '登录设置',
    pKey: 'LoginConfig',
    items: [
      { code: 'FS_LOGIN_CLIENTSECRET', label: ['ClientSecret'], value: '' },
      { code: 'FS_LOGIN_REDIRECTURL', label: ['Redirecturi'], value: '' },
      { code: 'FS_LOGIN_CLIENTID', label: ['ClientID'], value: '' },
    ],
  },
  {
    key: 'JE_SYS_WXQUICKLOGIN',
    code: 'login-wechat',
    text: '登录设置',
    pKey: 'LoginConfig',
    items: [
      { code: 'WX_LOGIN_APPSECRET', label: ['AppSecret'], value: '' },
      { code: 'WX_LOGIN_APPID', label: ['AppID'], value: '' },
      { code: 'WX_LOGIN_APPURL', label: ['访问域名'], value: '' },
    ],
  },
  {
    key: 'JE_SYS_DDQUICKLOGIN',
    code: 'login-dingding',
    text: '登录设置',
    pKey: 'LoginConfig',
    items: [
      { code: 'DD_LOGIN_CLIENTSECRET', label: ['ClientSecret'], value: '' },
      { code: 'DD_LOGIN_REDIRECTURL', label: ['RedirectURL'], value: '' },
      { code: 'DD_LOGIN_CLIENTID', label: ['ClientId'], value: '' },
    ],
  },
  {
    key: 'JE_SYS_QQQUICKLOGIN',
    code: 'login-qq',
    text: '登录设置',
    pKey: 'LoginConfig',
    items: [
      { code: 'QQ_LOGIN_APPURL', label: ['问域名'], value: '' },
      { code: 'QQ_LOGIN_APPID', label: ['AppID'], value: '' },
      { code: 'QQ_LOGIN_APPKEY', label: ['AppSecret'], value: '' },
    ],
  },
  {
    key: 'OnlyOffice',
    code: 'document-onlyoffice',
    text: '在线文档服务',
    pKey: 'DocumentOnline',
    items: [
      { code: 'DOCUMENT_ONLY_HOST', label: ['ONLYOFFICE_HOST'], value: '' },
      { code: 'DOCUMENT_ONLY_CALLHOST', label: ['ONLYOFFICE_CALL_HOST'], value: '' },
    ],
  },
  {
    key: 'WPS',
    code: 'document-wps',
    text: '在线文档服务',
    pKey: 'DocumentOnline',
    items: [
      { code: 'DOCUMENT_WPS_APPID', label: ['WPS_APPID'], value: '' },
      { code: 'DOCUMENT_WPS_CALLHOST', label: ['WPS_CALL_HOST'], value: '' },
      { code: 'DOCUMENT_WPS_EDITHOST', label: ['WPS_EDIT_HOST'], value: '' },
      { code: 'DOCUMENT_WPS_READHOST', label: ['WPS_READ_HOST'], value: '' },
      { code: 'DOCUMENT_WPS_APPSECRET', label: ['WPS_APPSECRET'], value: '' },
    ],
  },
  {
    key: 'JE_SYS_ALIOSS',
    code: 'file-storage-aliyun',
    text: '文件存储服务',
    pKey: 'FileManage',
    items: [
      { code: 'FILE_ALIYUN_ENDPOINT', label: ['EndPoint'], value: '' },
      { code: 'FILE_ALIYUN_ACCESSSECRET', label: ['AccessKeySecret'], value: '' },
      { code: 'FILE_ALIYUN_ACCESSID', label: ['AccessKeyID'], value: '' },
      { code: 'FILE_ALIYUN_BUCKENAME', label: ['BucketName'], value: '' },
    ],
  },
  {
    key: 'JE_SYS_TENCENTOSS',
    code: 'file-storage-tencent',
    text: '文件存储服务',
    pKey: 'FileManage',
    items: [
      { code: 'FILE_TENCENT_SECRETID', label: ['SecretID'], value: '' },
      { code: 'FILE_TENCENT_BUCKETNAME', label: ['Bucket'], value: '' },
      { code: 'FILE_TENCENT_REGION', label: ['Region'], value: '' },
      { code: 'FILE_TENCENT_SECRETKEY', label: ['SecretKey'], value: '' },
    ],
  },
  {
    key: 'JE_SYS_WELINKOSS',
    code: 'file-storage-huawei',
    text: '文件存储服务',
    pKey: 'FileManage',
    items: [
      { code: 'FILE_HW_ACCESSKEY', label: ['SecretAccessKey'], value: '' },
      { code: 'FILE_HW_ENDPOINT', label: ['ObsEndpoint'], value: '' },
      { code: 'FILE_HW_ACCESSID', label: ['AccessKeyID'], value: '' },
      { code: 'FILE_HW_BUCKENAME', label: ['Bucke'], value: '' },
    ],
  },
  {
    key: 'JE_SYS_HARDDRIVE',
    code: 'file-storage-local',
    text: '文件存储服务',
    pKey: 'FileManage',
    items: [
      { code: 'FILE_LOCAL_BUCKETNAME', label: ['Bucket'], value: '' },
      { code: 'FILE_LOCAL_BASEPATH', label: ['BasePath'], value: '' },
      { code: 'FILE_LOCAL_DEFAULTBUCKET', label: ['is_default_bucket'], value: '' },
    ],
  },
  {
    key: 'JE_SYS_MINIO',
    code: 'file-storage-minio',
    text: '文件存储服务',
    pKey: 'FileManage',
    items: [
      {
        code: 'FILE_MINIO_ACCESSKEY',
        label: ['Access Key'],
        value: '',
      },
      {
        code: 'FILE_MINIO_SECRETKEY',
        label: ['Secret Key'],
        value: '',
      },
      {
        code: 'FILE_MINIO_BUCKENAME',
        label: ['BuckeName'],
        value: '',
      },
      { code: 'FILE_MINIO_HOST', label: ['Host'], value: '' },
      {
        code: 'FILE_MINIO_ENDPOINT',
        label: ['Endpoint'],
        value: '',
      },
    ],
  },
  {
    key: 'DocumentSetting',
    code: 'document-setting',
    text: '文档设置',
    pKey: '',
    items: [
      { type: 'Office', format: 'doc,docx,xls,xlsx,ppt,pptx', previewWay: 'pdf' },
      { type: 'PDF', format: 'pdf', previewWay: '1' },
      { type: '图片', format: 'jpg,jpeg,png,bmp,ico,gif', previewWay: '1' },
      { type: 'Flash', format: 'swf', previewWay: '0' },
      { type: '音频', format: 'mp3,wma', previewWay: '0' },
      { type: '视频', format: 'mp4,flv,f4v,mov', previewWay: '0' },
      { type: '文本', format: 'txt', previewWay: '0' },
      { type: 'CAD', format: 'dwf', previewWay: '0' },
    ],
  },
];
export default data;
